package com.dk.controller;
import com.dk.pojo.User;
import com.dk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("go")
public class UserController {
    @Autowired
    UserService userService;
    //注册
    @RequestMapping("insertByUser")
    @ResponseBody
    public Boolean addinsertByUser(User user){
        return userService.addinsertByUser(user);
    }

}
